package cn.mw.cmdb.virtualization.enums;

/**
 * @description 网络类型枚举
 */
public enum UniCloudVsWitchNetWorkType {
    MANAGE_NETWORK("1","管理网络"),
    BUSINESS_NETWORK("2","业务网络"),
    STORAGE_NETWORK("3","存储网络"),
    BACKUPS_NETWORK("4","备份网络"),
    MIGRATE_NETWORK("5","迁移网络"),
    OTHER_NETWORK("6","其他网络"),
    ;


    private String type;

    private String value;

    UniCloudVsWitchNetWorkType(String type, String value) {
        this.type = type;
        this.value = value;
    }

    public String getType() {
        return type;
    }

    public String getValue() {
        return value;
    }

    public static UniCloudVsWitchNetWorkType vsWitchNetWorkType(String dataType) {
        for (UniCloudVsWitchNetWorkType netWorkType : values()) {
            if (dataType.equals(netWorkType.getType())) {
                return netWorkType;
            }
        }
        return null;
    }
}
